package com.clz.hyperit.dao.impl;

import org.springframework.stereotype.Repository;

import com.clz.hyperit.dao.UserDao;
import com.clz.hyperit.entity.User;

import com.clz.hyperit.dao.impl.BaseDaoImpl;
@Repository("userDao")
public class UserDaoImpl extends BaseDaoImpl<User> implements UserDao {
	
	public User findByAccount(String account){
		String hql = "from User where account = :account";
		User user = (User) getCurrentSession().createQuery(hql)
				.setString("account", account).uniqueResult();
		return user;
	}
}
